package com.ds.lens.data.spring.event;

import com.ds.lens.data.common.constant.AlarmEventTypeEnum;
import com.ds.lens.data.common.integration.apm.dto.MetadataUpdateEvent;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * Description:
 * Alarm Rule event
 *
 * @author WeiShaoying
 * @date 2019-07-02
 */
public class AlarmRuleEvent extends ApplicationEvent {

    private static final long serialVersionUID = -8597005198276877064L;
    @Getter
    private MetadataUpdateEvent metadataUpdateEvent;
    @Getter
    private AlarmEventTypeEnum eventTypeEnum;

    public AlarmRuleEvent(Object source, MetadataUpdateEvent metadataUpdateEvent, AlarmEventTypeEnum eventTypeEnum) {
        super(source);
        this.metadataUpdateEvent = metadataUpdateEvent;
        this.eventTypeEnum = eventTypeEnum;
    }

}
